<include file="Public:header" />
<div class="container main"> <include file="Public:left" />
  <div class="w790">
    <style type="text/css">
    	#mission{text-align:center}
		#mission a{padding:5px 8px; margin:1px; background:#eee;}
		#mission span.current{padding:5px 8px; margin:1px; background:#F2F130; color:#fff;}
    </style>
<script type="text/javascript" src="__PUBLIC__/Js/jquery-1.7.2.min.js"></script>
<script src="__PUBLIC__/Js/validform/Validform.js"></script>
<script type="text/javascript">	
	$(function(){
		//使表单有验证功能
		$(".checkoutform:eq(0)").Validform({
			tiptype:3
		});
		
		$("#states").change(function(){
			var id = $(this).val();
			$("#state").attr("value",id);
		});
	});
		
</script>
    
<div class="h"><a href="{:U('index')}" class="btn btn-info">返回列表</a></div>
      <input type="hidden" name="is_list" value="1" />
      <div class="table_">
        <form id="dataform" action="{:U('update')}" method="post" class="checkoutform">
                    <table class="table table-bordered">
                    	<tr><input style="display:none;" name="id" value="{$info['info']['id']}"/>
                        	<td width="112" align="right">任务名：</td>
                            <td width="367">{$info['info']['title']}</td>
                        </tr>
                    	<tr>
                        	<td align="right">任务详述：</td>
                            <td>{$info['info']['detail']}</td>
                        </tr>
                    	<tr>
                        	<td colspan="2">{$info['res']}</td>
                        </tr>
                    	
                    	<tr><input style="display:none;" name="state" id="state" value="{$mission.state}"/>
                        	<td align="right">修改任务状态：</td>
                            <td>
                            	<select name="state" id="state">
                                	<option value="-1">请选择</option>
                                	<option value="1" <eq name="info['info']['state']" value="1">selected="selected"</eq>>待审核</option>
                                	<option value="2" <eq name="info['info']['state']" value="2">selected="selected"</eq>>处理中</option>
                                	<option value="3" <eq name="info['info']['state']" value="3">selected="selected"</eq>>已处理</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                        	<td>备注信息<br/><span style="color:#EF0A0E;">（注：此处信息录入后点击“修改任务进度”将会造成任务进度改变，谨慎操作！）</span></td>
                        	<td><textarea name="comment" id="comment" datatype="*" nullmsg="请录入备注信息" style="height: 85px; width: 358px;"></textarea></td>
                        </tr>
                        
                    </table>
      </div>
      <!--扩展结束-->
      <div class="pages"><input id="sub" style="background-color:#12B4DD; height:35px;" type="submit" value="修改任务进度" />
       <!-- <button id="sub" type="submit" class="mybutton" disabled="disabled">修改任务进度</button>-->
      </div>
    </form>
  </div>
  
  
  <div class="panel panel-success" style="margin:5px;">
      <div class="panel-heading">
        <h3 class="panel-title">进度信息</h3>
      </div>
      <div class="panel-body"><div class="list-group">
        <volist name="info['progress']" id="vo"> <a href="{:U('read', array('id' => $vo['id']))}" class="list-group-item <eq name="key" value="0">active</eq>">
        <h4 class="list-group-item-heading">操作人：{:getAdminName($vo['user_id'])}</h4>
        <p class="list-group-item-text">进度信息：{$vo.comment}</p>
        <p class="list-group-item-text">提交时间：{:date('Y-m-d H:i:s', $vo['datatime'])}</p>
        </a> </volist></div>
      </div>
    </div>
  
  
  <div class="clear"></div>
</div>

<script type="text/javascript">
	$(function(){
		var sta = $("#sta").val();
		if(sta=="3"){
			$("#sub").attr("disabled",true);
		}
	});
	
</script>
<include file="Public:footer" />